class AdminController < ApplicationController
  before_filter :authourize
  
  def index
  end
  
  def authourize
    if ( !User.find_by_id(session[:user_id]) or session[:username]!="admin")
      redirect_to login_url,:notice => "Please log in"
    end
  end
end
